Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployOpChain using OPCM #12291

Merged
merged 30 commits into from
Oct 11, 2024
Merged

deployOpChain using OPCM #12291

merged 30 commits into from
Oct 11, 2024

Conversation

maurelian
Copy link
Contributor

@maurelian maurelian commented Oct 3, 2024

Modifies Deploy.s.sol with two high level changes:

  1. the system is deployed by the OPCM
  2. any necessary modifications to that system (ie. for non-standard configurations)
    are handled with follow up actions.

Copy link
Contributor Author

maurelian commented Oct 3, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @maurelian and the rest of your teammates on Graphite Graphite

Copy link
Contributor

semgrep-app bot commented Oct 3, 2024

Semgrep found 2 sol-style-require-reason findings:

require() must include a reason string

Ignore this finding from sol-style-require-reason.

Semgrep found 2 sol-style-notice-over-dev-natspec findings:

  • packages/contracts-bedrock/scripts/fpac/viz/FaultDisputeGameViz.s.sol

Prefer @notice over @dev in natspec comments

Ignore this finding from sol-style-notice-over-dev-natspec.

Semgrep found 4 sol-style-doc-comment findings:

Javadoc-style comments are not allowed. Use /// style doc comments instead.

Ignore this finding from sol-style-doc-comment.

@maurelian maurelian force-pushed the opcm/tests/deploy-opchain branch 2 times, most recently from af9473e to 5ad8e76 Compare October 4, 2024 13:57
@maurelian maurelian changed the base branch from opcm/tests/deploy-opcm to feat_Move_DEFAULT_STARTING_ANCHOR_ROOTS_to_Constants_library October 4, 2024 13:57
@maurelian maurelian force-pushed the feat_Move_DEFAULT_STARTING_ANCHOR_ROOTS_to_Constants_library branch 4 times, most recently from 8ef9390 to 99ca905 Compare October 4, 2024 18:10
@maurelian maurelian force-pushed the feat_Move_DEFAULT_STARTING_ANCHOR_ROOTS_to_Constants_library branch 4 times, most recently from bcc0fba to dc94f66 Compare October 4, 2024 20:00
Base automatically changed from feat_Move_DEFAULT_STARTING_ANCHOR_ROOTS_to_Constants_library to develop October 4, 2024 20:24
At this point tests that depend on the L2OutputOracle will still fail,
but those with Fault Proofs _should_ pass.
It no longer handles the PERMISSIONED game type deploy by OPCM.
THis is necessary because the tests assume the respecte game is cannon,
but the OPCM assumes it is the permissioned game
@maurelian maurelian removed the request for review from mbaxter October 9, 2024 17:18
@maurelian maurelian requested review from a team as code owners October 10, 2024 19:47
@maurelian maurelian requested a review from a team as a code owner October 10, 2024 19:53
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.91%. Comparing base (117c9a4) to head (30f815d).
Report is 18 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #12291      +/-   ##
===========================================
- Coverage    64.10%   63.91%   -0.19%     
===========================================
  Files           52       52              
  Lines         4312     4312              
===========================================
- Hits          2764     2756       -8     
- Misses        1374     1383       +9     
+ Partials       174      173       -1     
Flag Coverage Δ
cannon-go-tests 63.91% <ø> (-0.19%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes

@maurelian maurelian force-pushed the opcm/tests/deploy-opchain branch 3 times, most recently from 3430d79 to 307a97d Compare October 10, 2024 21:11
Copy link
Contributor

semgrep-app bot commented Oct 11, 2024

Semgrep found 1 err-todo finding:

  • op-program/client/l2/engineapi/l2_engine_api.go

TODO in error handling code

Ignore this finding from err-todo.

@pauldowman pauldowman removed their request for review October 11, 2024 13:53
@maurelian maurelian added this pull request to the merge queue Oct 11, 2024
Merged via the queue into develop with commit 0466b62 Oct 11, 2024
59 of 60 checks passed
@maurelian maurelian deleted the opcm/tests/deploy-opchain branch October 11, 2024 18:53
samlaf pushed a commit to samlaf/optimism that referenced this pull request Nov 10, 2024
* feat: move log to top of save function

Makes debugging slightly easier.

* feat: Deploy system with OPCM

* feat: Deploy missing Permissionless DWETH

* feat: Fully OPCM based deployment

At this point tests that depend on the L2OutputOracle will still fail,
but those with Fault Proofs _should_ pass.

* feat: Refactor _setFaultGameImplementation

It no longer handles the PERMISSIONED game type deploy by OPCM.

* test: Make caller explicit in unauthorized test case

* test: Fix have guardian setRespectedGameType to Cannon

THis is necessary because the tests assume the respecte game is cannon,
but the OPCM assumes it is the permissioned game

* test: Bridge_Initializer defaulst to FP on

* test: setRespectedGameType to Cannon in Deploy

* test: Bridge_Initializer defaulst to FP on

* feat: resetInitializedProxy func to allow reinitializing contracts

* feat: Delete initializeOpChain, we don't need it anymore

* feat: Set batch inbox address in config using hashed method

* feat: Make caller explicit in testFuzz_removeDependency_notDependencyManager_reverts

* feat: lint

* Revert "test: Bridge_Initializer defaulst to FP on"

This reverts commit d435653.

* feat: Consolidate useFaultProofs modifications into _run

* Revert "test: Bridge_Initializer defaulst to FP on"

This reverts commit af8d99b.

* feat: Some annotations in Deploy.s.ol

* feat: Skip checking L2OO in Initializable.t.sol

* feat: Delete unused initialize functions

* fix: Remove unused imports

* fix: unused import

* feat: Use respectedGameType from deploy-config

* use startPrank

* feat: Prevent deploying legacy portal for interop

* fix: incorrect var name

* feat: detect when OPCM is deploying the Permissionless game

* fix: error format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants